package com.rxst.msg.dto.save;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rxst.msg.dto.save.user.AutherListDo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用户表
 *
 * @author rxst
 * @email rxst@gmail.com
 * @date 2021-08-19 11:47:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MsgxUserSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 用户账号类型 0：系统管理员 1 普通用户
     */
    @ApiModelProperty(value = "用户账号类型 0：系统管理员 1 普通用户", notes = "用户账号类型 0：系统管理员 1 普通用户")
    private Integer userType;
    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", notes = "用户账号")
    private String userAccount;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称", example = "@component:ProFormText@length:32@required:true", notes = "用户名称")
    private String userName;
    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", example = "@component:ProFormTextArea@length:64@required:false", notes = "用户密码")
    private String userPassword;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-08-19 00:00:00", notes = "创建时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", example = "2021-08-19 00:00:00", notes = "修改时间",dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private List<AutherListDo> authData;

}
